package mka.puzzle.form;

import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class Main extends JFrame {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void paint(Graphics g) {
		Graphics2D g2 = (Graphics2D) g;
		g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
				RenderingHints.VALUE_ANTIALIAS_ON);
		Font font = new Font("Serif", Font.PLAIN, 96);
		g2.setFont(font);
		g2.setPaint(Color.green);
		g2.drawString("This is JFrame", 40, 120);
		g2.fillOval(10, 10, 50, 50);
	}

	public static void main(String[] args) {
		JFrame f = new JFrame();
		f.getContentPane();
		f.setSize(300, 200);
		f.setVisible(true);
	}
}